package com.ydt.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 一点通产品表(YdtProduct)实体类
 *
 * @author makejava
 * @since 2020-12-24 14:32:14
 */
public class YdtProduct implements Serializable {
    private static final long serialVersionUID = 738456445189501823L;
    /**
     * 商品id
     */
    private Integer id;
    /**
     * 分类id对应ydt_category表的主键
     */
    private Integer categoryId;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品副主题
     */
    private String subtitle;
    /**
     * 产品主图，url对应地址
     */
    private String mainImage;
    /**
     * 图片地址，json格式，扩展用
     */
    private String subImages;
    /**
     * 商品详情
     */
    private String detail;
    /**
     * 价格，保留两位小数
     */
    private Double price;
    /**
     * 库存数量
     */
    private Integer stock;
    /**
     * 商品状态1——在售，2——下架，3——删除
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getMainImage() {
        return mainImage;
    }

    public void setMainImage(String mainImage) {
        this.mainImage = mainImage;
    }

    public String getSubImages() {
        return subImages;
    }

    public void setSubImages(String subImages) {
        this.subImages = subImages;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}